<?php $this->renderPartial('//common/header'); ?>
<!-- CONTENT CONTAINER -->
<div class="container">
	<ul class="breadcrumb">
		<li><a href="<?php echo PIUrl::createUrl('/home/');?>"><?php echo translate("Trang chủ"); ?></a></li>
		<li><span><?php echo translate("Thủ tục hành chính"); ?></span></li>
	</ul>
	<div class="content-container row">
		<!-- MAIN CONTENT -->
		<div class="col-md-8 main-content">
		<?php if(!empty($arrInfo)){ ?>
			<table class="block table-file">
				<thead>
					<tr>
						<th class="title title-bd"><span><?php echo translate("Thủ tục hành chính"); ?></span></th>
						<th class="title title-bd"><span><?php echo translate("Kích thước file"); ?></span></th>
						<th class="title title-bd"><span><?php echo translate("Loại file"); ?></span></th>
						<th class="title title-bd"><span><?php echo translate("Tải về"); ?></span></th>
					</tr>
				</thead>
				<tbody>
					<?php foreach($arrInfo as $row){ ?>
						<tr>
							<td><a href="javascript:void(0)"><?php echo $row->name; ?></a></td>
							<td><a href="javascript:void(0)"><?php echo round($row->size/1024)." KB"; ?></a></td>
							<td><a href="javascript:void(0)"><i class="icon <?php 
								if($row->type=="doc" || $row->type == 'docx') echo 'icon-word';
								else{
									if($row->type == 'pdf') echo 'icon-pdf';
									else echo 'icon-excel';
								}
								
							?>"></i></a></td>
							<td><a href="<?php echo PIUrl::createUrl('/home/download/', array('name' => $row->id));?>"><i class="icon icon-file"></i></a></td>
						</tr>
					<?php } ?>
				</tbody>
			</table>
		<?php }else{ echo translate("Không tìm thấy nội dung!"); } ?>
		</div>
		<!-- SIDEBAR -->
		<div class="col-md-4 sidebar">
			<!-- BLOCK HỎI ĐÁP -->
			<?php $this->widget("application.components.widgetQuestionAnswers"); ?>
		</div>
	</div>
</div>

<!-- FULL BLOCK HÌNH ẢNH HOẠT ĐỘNG -->
<?php $this->widget("application.components.widgetImages"); ?>

<!-- FULL BLOCK HỖ TRỢ LIÊN KẾT -->
<?php $this->widget("application.components.widgetLinkSupport"); ?>

<div id="push"> </div>
</div>
<?php $this->renderPartial('//common/footer'); ?>
<style>
i.icon-excel{
	background: url("<?php echo Yii::app()->theme->baseUrl;?>/img/front/icon/icon-excel.png") no-repeat;
	width: 15px; height: 18px;
}
i.icon-pdf{
	background: url("<?php echo Yii::app()->theme->baseUrl;?>/img/front/icon/icon-pdf.png") no-repeat;
	width: 15px; height: 18px;
}
</style>
<script>
$(document).ready(function(){
	$(".selected a").css("background-color", "#073B66");
});
</script>